import numpy as np

if __name__ == "__main__":
    x = [1,2,3,4]
    M = np.diag(x,k=-1)
    print(M)
    pass